<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
            <th>用户名</th>
            <th>姓名</th>
            <th>手机号码</th>
            <th>角色</th>
            <th>分店</th>
            <th>在线状态</th>
            <th>用户状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$vo.user_name}</td>
            <td>{$vo.name}</td>
            <td>{$vo.mobile}</td>
            <td>{$vo.role_text}</td>
            <td><a href="{:U('store_picker','uid='.$vo['id'])}" class="xsui-lnk-edit-dialog" title="归属分店">[设置]</a><span  class="xsui-text-ellipsis" title="{$vo.branch_text}">{$vo.branch_text}</span></td>
            <td class="status"><a href="{:U('User/change_online_status','uid='.$vo['id'].'&status=varstatus')}" data-value="{$vo.status}" title="点击离线" class="xsui-success"><i class="fa fa-check fa-fw"></i></a></td>
        <td>{$vo.status|sofn_get_state_text='user-state',###}</td>
        <td>{$vo.create_time}</td>
        <td>
            <ul class="xsui-operate-group">
                <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                    <ul>
                        <li><a href="{:U('user_edit','id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑 - {$vo.user_name}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                        <li><a href="{:U('user_delete','id='.$vo['id'])}" class="xsui-lnk-remove" data-xsui-options="prompt_message:'您必需输入口令才能执行删除操作！\n请输入口令:yes',prompt_value:'yes'" data-id="{$vo.id}" title="删除 {$vo.user_name}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                        <li><a href="{:U('User/password_reset','uid='.$vo['id'])}" class="xsui-lnk-remove" data-id="{$vo.id}" data-xsui-options="confirm_message:'您确定要将密码重置为123456吗?'"><i class="fa fa-user-secret fa-fw"></i>重置密码</a></li>
                        <li><a href="{:U('User/user_role_one','uid='.$vo['id'])}" class="xsui-lnk-edit-dialog" title="角色设定 - {$vo.user_name}"><i class="fa fa-credit-card fa-fw"></i>角色</a></li>
                        <li><a href="{:U('User/user_department_one','uid='.$vo['id'])}" class="xsui-lnk-edit-dialog" title="部门设定 - {$vo.user_name}"><i class="fa fa-group fa-fw"></i>部门</a></li>
                    </ul>
                </li>
            </ul>
        </td>
        </tr>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>